﻿<%@ Page Title="badinfo" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeBehind="List.aspx.cs" Inherits="lcps.Web.badinfo.List" EnableEventValidation="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript" src="/js/CheckBox.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <!--Title -->
    <!--Title end -->
    <!--Add  -->
    <!--Add end -->
    <!--Search -->
    <table style="width: 100%;" cellpadding="2" cellspacing="1" class="border">
        <tr>
            <td style="width: 80px" align="right" class="tdbg">
                &nbsp;
            </td>
            <td class="tdbg">
                <b>供应商全称：</b><asp:TextBox ID="txtKeyword" runat="server"></asp:TextBox>
                &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click"></asp:Button>
            </td>
            <td class="tdbg">
            </td>
        </tr>
    </table>
    <!--Search end-->
    <br />

                <asp:GridView ID="gridView" runat="server" Width="100%" CellPadding="3" OnPageIndexChanging="gridView_PageIndexChanging"
                    BorderWidth="1px" DataKeyNames="ID" OnRowDataBound="gridView_RowDataBound" AutoGenerateColumns="False"
                    RowStyle-HorizontalAlign="Center" OnRowCreated="gridView_OnRowCreated">
                    <Columns>
                        <asp:TemplateField ControlStyle-Width="30" HeaderText="选择">
                            <ItemTemplate>
                                <asp:CheckBox ID="DeleteThis" onclick="javascript:CCA(this);" runat="server" />
                            </ItemTemplate>
                            <ControlStyle Width="30px"></ControlStyle>
                        </asp:TemplateField>
                        <asp:HyperLinkField HeaderText="编辑" ControlStyle-Width="50" DataNavigateUrlFields="ID"
                            DataNavigateUrlFormatString="Modify.aspx?id={0}" Text="编辑">
                            <ControlStyle Width="50px"></ControlStyle>
                        </asp:HyperLinkField>
                        <asp:HyperLinkField HeaderText="详细" ControlStyle-Width="50" DataNavigateUrlFields="ID"
                            DataNavigateUrlFormatString="Show.aspx?id={0}" Text="详细">
                            <ControlStyle Width="50px"></ControlStyle>
                        </asp:HyperLinkField>
                        <asp:BoundField DataField="btime" HeaderText="时间" SortExpression="btime" ItemStyle-HorizontalAlign="Center"
                            DataFormatString="{0:d}">
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="supplier" HeaderText="供应商全称" SortExpression="supplier"
                            ItemStyle-HorizontalAlign="Center">
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="question" HeaderText="问题描述" SortExpression="question"
                            ItemStyle-HorizontalAlign="Center">
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="dispose" HeaderText="处理意见" SortExpression="dispose" ItemStyle-HorizontalAlign="Center">
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="disresult" HeaderText="处理结果" SortExpression="disresult"
                            ItemStyle-HorizontalAlign="Center">
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="remark" HeaderText="备注" />
                        <asp:TemplateField ControlStyle-Width="50" HeaderText="删除" Visible="false">
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                                    Text="删除"></asp:LinkButton>
                            </ItemTemplate>
                            <ControlStyle Width="50px"></ControlStyle>
                        </asp:TemplateField>
                        <asp:BoundField DataField="bno" HeaderText="bno" SortExpression="bno" ItemStyle-HorizontalAlign="Center"
                            Visible="False">
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </asp:BoundField>
                    </Columns>
                    <RowStyle HorizontalAlign="Center"></RowStyle>
                </asp:GridView>

    <table border="0" cellpadding="0" cellspacing="1" style="width: 100%;">
        <tr>
            <td style="width: 1px;">
            </td>
            <td align="left">
                <asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click" />
                &nbsp;
                <asp:Button ID="btn_out" runat="server" Text="导出Excel" 
                    OnClick="btn_out_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
<%--<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceCheckright" runat="server">
</asp:Content>--%>
